﻿<%@ Page Language="VB" AutoEventWireup="true" MasterPageFile="~/TimeTracker/MasterPage.master" CodeFile="User_Edit.aspx.vb" Inherits="User_Edit"
Title="My Company - Time Tracker - Administration - Edit Users" Culture="auto" UICulture="auto" %>

<asp:Content ID="Content1" ContentPlaceHolderID="maincontent" runat="Server">
    <div id="adminedit">
        <a name="content_start" id="content_start"></a>
        <div>
            <br />
            <table>
                <tr>
                    <td>
                    
            <table width="350">
            <tr>
                <td></td>
                <td></td>
                <td align="center">Roles</td>
            </tr>
            <tr>
                <td>User Name</td>
                <td>
                    <asp:Label ID="uname" runat="server"></asp:Label>
                </td>
                <td rowspan="6" valign="top">
                    <asp:CheckBox ID="rolePrjAdmin" runat="server" Text="Project Admin" /><br />
                    <asp:CheckBox ID="rolePrjMgr" runat="server" Text="Project Manager" /><br />
                    <asp:CheckBox ID="roleUser" runat="server" Text="User" /><br />
                </td>
            </tr>
            <tr>
                <td>Email</td>
                <td>
                    <asp:TextBox ID="email" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>First Name</td>
                <td>
                    <asp:TextBox ID="fname" runat="server"></asp:TextBox>
                </td>
            </tr>
                <tr>
                    <td>Last Name</td>
                    <td>
                        <asp:TextBox ID="lname" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>Emp ID</td>
                    <td>
                        <asp:TextBox ID="empid" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>Is Approved</td>
                    <td>
                        <asp:CheckBox ID="isApproved" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td colspan="3" align="center">
                        <asp:Button ID="btnSave" runat="server" Text="Save" />&nbsp;&nbsp;
                        <asp:Button ID="Button2" runat="server" Text="Cancel" />
                    </td>
                </tr>
            </table>
                    </td>
                    <td valign="top">
                    <table width="350">
                        <tr>
                            <td colspan="2" align="center">Change Password</td>
                        </tr>
                        <tr>
                            <td>Password</td>
                            <td>
                                <asp:TextBox ID="txtPass" runat="server" TextMode="Password"></asp:TextBox><br />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                    ValidationGroup="chgPassword"
                                    ErrorMessage="Password is Required" ControlToValidate="txtPass"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>Confirm Password</td>
                            <td>
                                <asp:TextBox ID="txtPassConfirm" runat="server" TextMode="Password"></asp:TextBox><br />
                                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                                    ControlToCompare="txtPass" ControlToValidate="txtPassConfirm" 
                                    ValidationGroup="chgPassword"
                                    ErrorMessage="CompareValidator">Password Does Not Match</asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center"><asp:Button ID="btnChgPass" runat="server" 
                                    Text="Button" ValidationGroup="chgPassword" /></td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <hr width="85%" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center">
                                <asp:Label ID="lblUnLockTitle" runat="server" Text="Unlock User"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblIsLocked" runat="server" Text="Unlock User:"></asp:Label>
                            </td>
                            <td>
                                <asp:Button ID="btnUnlock" runat="server" Text="Unlock" />
                            </td>
                        </tr>

                    </table>
                    
                    </td>
                </tr>
            </table>
            <asp:Label ID="errMsg" runat="server" Text="Label"></asp:Label>
<br />
        </div>
        </div>
    </asp:Content>
